<template>
  <div>关闭页面tab将从缓存中删除，输入框内容将会初始化</div>
  <a-input v-model:value="value"></a-input>
  <a-button>
    <router-link to="/page-another">其它不缓存的页面</router-link>
  </a-button>
</template>

<script lang="ts">
  import { defineComponent, ref } from 'vue'
  export default defineComponent({
    setup() {
      return {
        value: ref('BBB')
      }
    }
  })
</script>